package example_01.work_01;
import java.util.Scanner;
/***
 * 将一个数组中的元素逆序存放。
 */
public class test05 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        int[] grade = {87,88,89,98,78};

         int m;
              for(int i = 0; i < 2; i++){

                       m = grade[i];
            grade[i] = grade[5-i-1];
                       grade[5-i-1] = m;

                    }
                for(int j =0; j < 5; j++){
                        System.out.println(grade[j]);
                  }
    }
}
